package com.ruoyi.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.system.domain.ProCreateBuilding;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 催款申请对象 dun_application
 * 
 * @author ruoyi
 * @date 2020-06-22
 */
public class DunApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @Excels({
            @Excel(name = "项目名称", targetAttr = "pName", type = Excel.Type.EXPORT),
    })
    private ProCreateBuilding proCreateBuilding;

    @Excels({
            @Excel(name = "甲方名称", targetAttr = "pContractParty", type = Excel.Type.EXPORT),
            @Excel(name = "合同名称", targetAttr = "pFileName", type = Excel.Type.EXPORT),
            @Excel(name = "合同金额", targetAttr = "pMoney", type = Excel.Type.EXPORT),
            @Excel(name = "备注", targetAttr = "pRemark", type = Excel.Type.EXPORT)
    })
    private ProConSupAgr proConSupAgr;
    /** 主键id
 */
    private Long dId;

    /** 催款金额 */
    @Excel(name = "催款金额")
    private Double pfmPrice;

    /** 已付金额 */
    @Excel(name = "已付金额")
    private Double paidPrice;

    /** 未付金额 */
    @Excel(name = "未付金额")
    private Double unpaidPrice;

    /** 申请时间 */
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 关联项目id */
    private Long pId;



    public ProCreateBuilding getProCreateBuilding() {
        if (proCreateBuilding == null)
        {
            proCreateBuilding = new ProCreateBuilding();
        }
        return proCreateBuilding;
    }

    public void setProCreateBuilding(ProCreateBuilding proCreateBuilding) {
        this.proCreateBuilding = proCreateBuilding;
    }

    public ProConSupAgr getProConSupAgr() {
        if(proConSupAgr ==null){
            proConSupAgr =new ProConSupAgr();
        }
        return proConSupAgr;
    }

    public void setProConSupAgr(ProConSupAgr proConSupAgr) {
        this.proConSupAgr = proConSupAgr;
    }

    public void setdId(Long dId)
    {
        this.dId = dId;
    }

    public Long getdId() 
    {
        return dId;
    }
    public void setPfmPrice(Double pfmPrice) 
    {
        this.pfmPrice = pfmPrice;
    }

    public Double getPfmPrice() 
    {
        return pfmPrice;
    }
    public void setPaidPrice(Double paidPrice) 
    {
        this.paidPrice = paidPrice;
    }

    public Double getPaidPrice() 
    {
        return paidPrice;
    }
    public void setUnpaidPrice(Double unpaidPrice) 
    {
        this.unpaidPrice = unpaidPrice;
    }

    public Double getUnpaidPrice() 
    {
        return unpaidPrice;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dId", getdId())
            .append("pfmPrice", getPfmPrice())
            .append("paidPrice", getPaidPrice())
            .append("unpaidPrice", getUnpaidPrice())
            .append("applyTime", getApplyTime())
            .append("pId", getpId())
                .append("proCreateBuilding",getProCreateBuilding())
                .append("proConSupAgr",getProConSupAgr())
            .toString();
    }
}
